package com.esreport.service.impl;

import com.esreport.dao.SiteConfigRepository;
import com.esreport.entity.SiteConfig;
import com.esreport.service.SiteConfigService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName SiteConfigServiceImpl
 * @Description
 * @Author fanxingwei
 * @Date 2020/9/18 15:28
 * @Version 1.0
 */
@Service
public class SiteConfigServiceImpl implements SiteConfigService {

    @Resource
    private SiteConfigRepository repository;

    @Override
    public SiteConfig getOne(Integer siteId) {
        return repository.getBySiteId(siteId);
    }
}
